# 去除多余空格和符号
s = "  hello, world!  "
clean_s = s.strip().replace(",", "")  # 结果：hello world!
print(clean_s)